import { RouteRecordRaw } from "vue-router";

/**
 * 侧边栏菜单路由
 */
export const asideRouters: Array<RouteRecordRaw> = [
  {
    path: "/private/letter",
    name: "privateLetter",
    component: () => import("@/views/private-letter/IndexView.vue"),
    children: [
      {
        path: "/private/letter/group/:group",
        name: "group",
        component: () => import("@/views/private-letter/GroupView.vue"),
        props: true,
      },
      {
        path: "/private/letter/:privateId",
        name: "privateLetterOne",
        component: () => import("@/views/private-letter/PrivateLetterView.vue"),
        props: true,
      },
    ],
  },
  {
    path: "/user/server/:serverId",
    name: "userServer",
    component: () => import("@/views/user-server/IndexView.vue"),
    children: [
      {
        path: "/user/server/:serverId/:tcId",
        name: "textChannel",
        component: () => import("@/views/user-server/TextChannelChatView.vue"),
        props: true,
      },
    ],
    props: true,
  },
];
